:global{
    #bp_container{
        z-index: 99999999 !important;
    }
    pagenote-notification{
        display: inline-block;
        position: fixed;
        left: 0;
        top: 0;
        z-index: 99999;
        font-size: 12px;
        padding: 2px 4px;
        border-radius: 2px;
        background: #ffd581;
        color:#000;
        &.success{
            background: #ffd581;
        }
        &.error{
            background: #ff7b82;
        }
        &.fade{
            animation: notification 3s ease-in-out forwards;
        }
    }

    @keyframes :global(notification) {
        0%{
            transform: translateY(0);
            opacity: 1;
        }
        80%{
            transform: translateY(-16px);
            opacity: 1;
        }
        100%{
            transform: translateY(-20px);
            opacity: 0;
        }
    }
}

@media screen and (max-width: 720px){
    .recordContain .recordButton{
        transform: translate(0,0) scale(0.59) !important;
        opacity: 1;
    }
    .sideBar{
        width: 40px;
    }
}


//.pagenoteNote{
//    font-size: 12px;
//    padding: 6px;
//    border-bottom: 1px dashed #d2d1d1;
//    .tips{
//        color: #dadada;
//    }
//}


//.dotStepSign{
//    position: absolute;
//    right: 6px;
//    height: 8px;
//    border-left-width: 0;
//    width: 8px;
//    background: var(--color);
//    border-radius: 8px;
//    box-sizing: border-box;
//    padding: 0 0 0 8px;
//    margin-bottom: 10px;
//    transition: all 0.3s;
//    cursor: pointer;
//
//    &.isActive{
//        transform: translateX(0) scale(2);
//    }
//    &:after{
//        content: attr(tip);
//        display: none;
//        font-size: 12px;
//        width: 100px;
//        position: absolute;
//        right: 8px;
//        background: rgba(0,0,0,0.5);
//        color: #fff;
//        padding: 4px;
//        border-radius: 4px;
//        max-height: 4em;
//        top: -4px;
//    }
//    &:hover{
//        &:after{
//            display: block;
//        }
//    }
//}

.stepSign{
    display: block;
    //position: relative;
    font-size: 12px;
    left: 0;
    top: 0;
    width: 100%;
    height: 20px;
    line-height: 20px;
    overflow: hidden;
    text-align: left;
    cursor: pointer;
    border-left: 4px solid var(--color);
    padding: 0 6px;
    box-sizing: border-box;
    background-color: #fff;
    margin-bottom: 5px;
    //white-space: nowrap;
    text-overflow: ellipsis;
    color: #333;
    transition: all 0.3s;
    &:last-child{
        margin-bottom: 0;
    }
    &.running,&:hover{
        //width: auto;
        //height: unset;
        max-height: 5em;
        z-index: 1;
    }
    &:hover{
        background-color: rgb(251, 252, 255);
        user-select: auto;
        z-index: 2 !important;
    }
    &.isActive{
        z-index: 1;
        width: calc(100% + 14px);
        height: auto;
        max-height: 5em;
        transform: translateX(-14px);
        border-radius: 5px 0 0 5px;
        border-left: 8px solid var(--color);
        background-color: rgb(251, 252, 255);
    }

}

.stepTag{
    z-index: 9999;

    &:hover{
        z-index: 99999;
    }

    &.LightActive{
        .point{
            cursor: move;
            transform: scale(2);
            animation:none;
            box-shadow: 0px 0px 0px 1px #fff;
            &:before,&:after{
                display: none;
            }
        }
        .points:hover {
            .menuPoint {
                opacity: 1;
                transform: scale(2) translate(16px, 0px);
            }
            .deleteButton{
                opacity: 1;
                transform: scale(2) translate(-16px, 0px);
            }

        }
    }
    .points{
        &:hover .point{
            transform: scale(2)
        }
    }

    .menuPoint,.deleteButton{
        //display: none;
        position: absolute;
        opacity: 0;
        top: 6px;
        left: -7px;
        width: 13px;
        height: 13px;
        cursor: pointer;
        border-radius: 2px;
        //background-color: pink;
        transition: all 0.5s;
        svg{
            vertical-align: super;
            box-shadow: 1px 1px 3px 0px #d0cfc6;
            border-radius: 2px;
            background: #fff;
        }
    }

    .point{
        position: absolute;
        z-index: 1;
        width: 13px;
        height: 13px;
        //box-shadow: 0px 0px 0px 1px var(--bg-color);
        border: 1px solid var(--bg-color);
        top: 6px;
        left: -7px;
        border-radius: 50%;
        color: #fff;
        cursor: pointer;
        animation: light-point 1.5s linear infinite;
        animation-direction:alternate;
        /*animation: point-notifi 1.5s 0s ease-in-out infinite;;*/
        transition:0.3s;
        background-color: var(--bg-color);
        /*background-image: url('https://betacdn.lanhuapp.com/web/static/favicon.ico');*/
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        //background-image: url('https://s1-fs.pstatp.com/static-resource/v1/241f2000de2618aa654bd~?image_size=72x72&cut_type=default-face&quality=&format=jpeg&sticker_format=.webp');

        &.warn{
            border: 1px solid red;
        }
        &:before {
            content: '';
            position: absolute;
            left: -1px;
            top: 6px;
            width: 9px;
            height: 1px;
            border-left: solid 3px currentColor;
            border-right: solid 3px currentColor;
        }
        &:after {
            content: '';
            position: absolute;
            left: 6px;
            top: -1px;
            width: 1px;
            height: 9px;
            border-top: solid 3px currentColor;
            border-bottom: solid 3px currentColor;
        }
        &:hover{
            transform: scale(2);
            animation:none;
        }
        &:hover + .box{
            display: block;
        }
    }

    .box {
        display: none;
        box-sizing: border-box;
        overflow: hidden;
        width: 0;
        height: 0;
        //max-width: 270px;
        //min-width: 0;
        min-height: 20px;
        //padding: 2px 14px;
        font-size: 14px;
        //line-height: 20px;
        border-radius: 5px;
        background: radial-gradient(26px 26px at left 13px, transparent 50%, var(--bg-color) 50%);
        box-shadow: 0px 0px 1px 2px #fff;
        transition: all 0.2s;
        /*user-select: none;*/
        &.show{
            display: block;
            width: auto;
            height: auto;
        }
        &.show:hover,&.show:focus{
            z-index: 99999999;
            border-radius: 0 0 5px 5px;
        }
        &.show:hover ,&.show:focus {
            .handlebar{
                opacity: 1;
                border-bottom: 1px solid #fff;
                transform: translateY(-20px);
            }
        }


        .editcontent{
            display: none;
            box-sizing: border-box;
            width: 100%;
            min-width: 200px;
            max-width: 280px;
            padding: 2px 14px 2px 20px;
            border-radius: 6px;
            user-select: none;
            &.showEdit{
                display: block;
            }
        }
        .editcontent:focus,.editcontent.writing{
            outline: 1px solid #eee;
            user-select: all;
        }
        .editcontent:focus + .handlebar{
            z-index: 1;
            opacity: 1;
            transform: translateY(-20px);
        }
        .editcontent img{
            max-width: 100%;
            max-height: 100%;
        }
    }


}



.pointColor{
    display: none;
    width: 12px;
    height: 12px;
    position: absolute;
    top: -14px;
    left: 0;
    background-color: #189cfd;
    border-radius: 14px;
}

.handlebar{
    position: absolute;
    top: 0;
    opacity: 0;
    left: 0;
    height: 20px;
    width: 100%;
    font-size: 12px;
    box-sizing: border-box;
    padding: 0 8px;
    white-space: nowrap;
    /*overflow: hidden;*/
    transition: all 0.3s;
    background: var(--bg-color);
    border-radius: 5px 5px 0 0;
    will-change: transform;
}

.deleteicon{
    display: block;
    width: 20px;
    height: 20px;
    position: absolute;
    right: 0;
    top: 0;
    cursor: pointer;
}

.menuContainer{
    position:fixed;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    min-width: 200px;
    font-size: 14px;
    padding: 10px;
    background: #f7f7f7;
    box-shadow: 0px 0px 9px 1px #676767;
    label{
        display: inline-block;
        width: 80px;
    }
}
.close{
    position: absolute;
    right: -7px;
    top: -7px;
    color: black;
    margin-top: 2px;
    margin-left: 3px;
    width: 12px;
    height: 12px;
    border: solid 1px currentColor;
    background-color: currentColor;
    border-radius: 100%;
    &:before{
        content: '';
        position: absolute;
        width: 8px;
        height: 3px;
        color: white;
        background-color: currentColor;
        left: 2px;
        top: 4px;
    }
}



.recordBall{
    display: none;
    position:fixed;
    z-index: 99999;
    font-size: 12px;
    line-height: 20px;
    padding: 0px 4px;
    width:20px;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    background:#f36b5d;
    border-radius:10px;
    transition: width 0.5s;
    &.recording{
        display: block;
    }
    &.arrived{
        width: 160px;
        background: #fff;
        border-radius: 4px;
    }
}



@keyframes zoomIn {
    0%{
        transform: scale(0);
    }
    100%{
        transform: scale(1);
    }
}



.menuButton{
    z-index: 999999;
    padding: 4px;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,.5);
    font-weight: 600;
    color: #fff;
    background-color: #189cfd;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
    transition: all 225ms cubic-bezier(.4,0,.2,1) 0ms;
}
.menuButton:hover{
    background-color: #1976d2;
}


:global(b[data-highlight='y']){
    cursor: pointer;
    /*color: var(--bg-color)*/
}

:global([data-highlightbk='y']){
    /*background: #f1f1f1;*/
}

.esLight #light{
    fill:#fff;
}
.esLight #sunshine{
    display: none;
}
.esLight.lightAll #light,.esLight.lightAll #sunshine{
    display: block;
    fill:#ff720f;
}

:global{
    light[data-highlight]{
        position: relative;
        font-size: inherit !important;
        font-family: inherit !important;
        background-image: linear-gradient(to top, rgba(255,222,93,1) 2px, rgba(255,222,93,0.84) 2px);
        background-image: linear-gradient(to top, var(--bgcolor) 2px, var(--bgcolor) 2px);
        background-size: 100% 0px;
        border-bottom: 2px solid  rgba(255,222,93,1);
        border-bottom: 2px solid var(--bgbottomcolor);
        background-repeat: no-repeat;
        background-position: bottom;
        transition: background-size 0.5s ease-out;
        box-sizing: border-box;
        //animation: hue 6s infinite linear;
        &:after{
            //content: '';
            //display: block;
            //width: 4px;
            //height: 4px;
            //background: var(--bgbottomcolor);
            //position: absolute;
            //left: 100%;
            //top:100%;
            //transform: translate(-3px,-3px);
            ////box-shadow: 0px 0px 1px 1px #fbfbfb;
            //border-radius: 4px;
            ////animation: shine-light 2s ease-in-out forwards;
        }
        &:hover{
            z-index: 1;
            &:after{
                //animation: shine-light 2.5s ease-in-out;
            }
        }
        &[data-active='1']{
            -webkit-text-fill-color: var(--color);
            background-size: 100% calc(1em*2);
            animation: light 0.5s ease-in-out;
            //border-radius: 2px;
            &[data-mask='1']{
                filter: blur(2px);
            }
            &:hover{
                opacity: 0.85;
            }

            &[data-type='img']{
                outline: 1px solid var(--bgcolor);
            }
        }
        &[data-note='1']{
            //&:before{
            //    content:'';
            //    width: 16px;
            //    height: 16px;
            //    //background-color: #fff;
            //    background-image: url("");
            //    //background-image: url("");
            //    background-size: contain;
            //    position: absolute;
            //    left: 100%;
            //    top:100%;
            //    transform: translateY(-8px);
            //}
        }


        &:hover{
            light-actions{
                display: block;
            }
        }

        //&[data-type='img']{
        //   outline: 1px solid var(--bgcolor);
        //}

        pagenote-tag-edit{
            display: block;
            width: 100%;
            height: 100%;
        }
        pagenote-tip{
            display: block;
            background: #ffe5b0;
            padding: 8px;
            border: 1px solid #999;
        }
    }

    light-aside {
        position: absolute;
        cursor: default;
        left: 0;
        top: 100%;
        padding-top: 4px;
        //background: var(--bgcolor);
        font-size: 12px;
        border-radius: 6px;

        &:hover {
            z-index: 9;
        }

        &.active {
            //min-width: 100%;
            //max-width: 300px;
        }

        aside {
            content: '';
            display: block;
            width: 8px;
            height: 8px;
            background: var(--bgcolor);
            position: absolute;
            left: 0px;
            top: 0px;
            //border: 1px solid #fff;
            transition: all 0.3s ease-in-out;
        }

        light-actions {
            //display: none;
            cursor: pointer;
            background: #fff;
            //position: absolute;
            //right: 0px;

            svg {
                fill: var(--bgcolor);
            }
        }

        .note {
            position: relative;
            min-width: 150px;
            max-width: 100%;
            padding: 4px;
            background: var(--bgcolor);
            box-shadow: 2px 2px 2px 0px #cccccc;
            border: 1px solid #fff;
            border-radius: 4px;
        }
    }
}


.eye.icon {
    color: #000;
    position: absolute;
    margin-left: 3px;
    margin-top: 3px;
    width: 12px;
    height: 12px;
    border-radius: 70% 15%;
    border: solid 1px currentColor;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.eye.icon:before {
    content: '';
    position: absolute;
    left: 2px;
    top: 2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: solid 1px currentColor;
    background-color: currentColor;
}


@keyframes :global(tool-in) {
    0%{
        opacity: 0;
    }
    1%{
        display: block;
    }
    100%{
        opacity: 1;
        transform: translate(0,0);
    }
}

@keyframes :global(light) {
    0%{
        background-size: 100% 2px;
    }
    //15%{
    //    background-size: 100% calc(1em*2);
    //}
    //30%{
    //    background-size: 100% 2px;
    //}
    //20%{
    //    background-size: 100% calc(1em*2);
    //}
    //40%{
    //    background-size: 100% 2px;
    //}
    100%{
        background-size: 100% calc(1em*2);
    }
}


@keyframes point-notifi{
    0% {
        opacity: 0.3;
        transform: scale(0.3);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes light-point {
    0% {
        box-shadow: 0px 0px 1px 2px #fff;
        /*filter: hue-rotate(0deg);*/
    }

    100% {
        box-shadow: 0px 0px 2px 2px rgba(199, 198, 198, 0.52);

        /*filter: hue-rotate(360deg);*/
    }
}

@keyframes fade_out_none {
    0%{
        //width: 100%;
        //height: 100%;
        //transform: scale(1);
        right: initial;
    }
    100%{
        right: -160px;
    }
}

@-webkit-keyframes hue {
    from {
        filter: hue-rotate(0deg);
    }

    to {
        filter: hue-rotate(-360deg);
    }
}

@keyframes :global(shine-light) {
    0% {
        left: 100%;
        top: 100%;
        filter: hue-rotate(0deg);
    }
    10%{
        width: 8px;
        height: 8px;
    }
    45%{
        left: 0;
        top:100%;
    }
    50%{
        left: 0;
        top: 0;
    }
    90%{
        left: 100%;
        top: 0;
        width: 8px;
        height: 8px;
    }
    100%{
        left: 100%;
        top: 100%;
        filter: hue-rotate(-360deg);
    }
}
